/**
 * @(#)WebController.java, 2017/8/1.
 * <p/>
 * Copyright 2017 Netease, Inc. All rights reserved. NETEASE PROPRIETARY/CONFIDENTIAL. Use is
 * subject to license terms.
 */
package com.zswlib.netease.webapp.controller;

import com.zswlib.netease.webapp.service.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zoom(gzchenchiwei@corp.netease.com)
 */
@Controller
public class WebController extends BaseExceptionHandler{

    @Autowired
    private WebService webService;

    @RequestMapping(value = "/index.do")
    public String index(@RequestParam(value = "word", required = true) String word){
        webService.handle(word);
        return "index";
    }

}